package mvc
{
	import flash.display.Sprite;
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	
	public class MVCMAIN extends Sprite
	{
		private var _clockData:ClockData;
		public function MVCMAIN()
		{
			_clockData = new ClockData;
			_clockData.realTime = true;
			
			var clock:Clock = new Clock();
			clock.data = _clockData;
			addChild(clock);
			
			var view:AbstractClockView = new DigitalClock(this._clockData);
			clock.addView(view);
			
			view = new AnalogClock(this._clockData);
			clock.addView(view);
			
		}
	}
}